import http from './http'

//获取所有的字典
export let pageN = ()=>{
    return http.get('menu/list');
}


export let option = ()=>{
    return http.get('menu/option');
}

export let addMenu = (data)=>{
    return http.post('/menu',data);
}

export let deleteMenu = (id)=>{
    return http.del(`/menu/${id}`);

}
export let updateMenu = (data)=>{
    return http.put('/menu',data);
}

export let menuDetail = (id)=>{
    return http.get(`/menu/${id}`);
}